package com.exchange.controller;

import com.exchange.service.ExchangeRecordService;
import com.exchange.until.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/count")
@RestController
public class CountController {
    @Autowired
    private ExchangeRecordService exchangeRecordService;
    @GetMapping("/addressList")
    public Result addressList() {
        return Result.success(exchangeRecordService.findAddressList());
    }
}
